package com.jsmile.cloud.accountcenter.account.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 龚亮
 * @version 1.0
 * @desc 为了薪资破万，还是睡一会儿吧...!
 * @date 2020年06月04日 04:38:37
 */
@ApiModel
@Data
@TableName("t_ac_account_record")
public class AccountRecord extends Model<AccountRecord> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;
    @ApiModelProperty(value = "订单号")
    private String orderNo;
    @ApiModelProperty(value = "支付流水号")
    private String thirdPayNo;
    @ApiModelProperty(value = "交易时间")
    private java.util.Date tradeDate;
    @ApiModelProperty(value = "user_id")
    private Long userId;
    @ApiModelProperty(value = "账号ID")
    private Long accountId;
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    @ApiModelProperty(value = "商户id")
    private Long merchantId;
    @ApiModelProperty(value = "业务类型")
    private Integer tradeType;
    @ApiModelProperty(value = "是否支出：false收入 true支出")
    private Integer hasPay;
    @ApiModelProperty(value = "交易金额")
    private Long tradeAmount;
    @ApiModelProperty(value = "当前余额")
    private Long currentBalance;
    @ApiModelProperty(value = "当前可提现")
    private Long currentWithdrawable;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
    @ApiModelProperty(value = "更新时间")
    private java.util.Date updateTime;
    @ApiModelProperty(value = "删除标识")
    @TableLogic
    private Integer delFlag;
    @ApiModelProperty(value = "平台id")
    private Integer platformId;
    @ApiModelProperty(value = "业务id")
    private Integer bizCode;

}
